package com.mes.service.tdd;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.tdd.ProcurementRukuMapper;
import com.mes.entity.tdd.ProcurementRuku;
import com.mes.entity.tdd.tj.Tpage;
/**
 * 
 *@ClassName: ProcurementRukuServiceImpl 
 *@Description: 到货单
 *@Author tdd
 *@Date 2018-6-6 上午10:16:14 
 *@version 1.0
 */
@Service
@Transactional
public class ProcurementRukuServiceImpl implements ProcurementRukuService{
	//写入到货单Mapper
	@Resource ProcurementRukuMapper rukuMapper;
	/**
	 * 到货单分页
	 */
	@Override
	public List<ProcurementRuku> list(Tpage pageBean) {
		return rukuMapper.list(pageBean);
	}
	/**
	 * 到货单条数
	 */
	@Override
	public int total(Tpage pageBean) {
		return rukuMapper.total(pageBean);
	}
	/**
	 * 到货单添加
	 */
	@Override
	public Long add(ProcurementRuku ruku) {
		Long add = rukuMapper.add(ruku);
		return add;
	}
	/**
	 * 到货单修改
	 */
	@Override
	public int updata(ProcurementRuku ruku) {
		return rukuMapper.edit(ruku);
	}
	/**
	 * 到货单删除
	 */
	@Override
	public int updatadelete(ProcurementRuku ruku) {
		return rukuMapper.delete(ruku);
	}

}
